package com.bolingcavalry.crm.taskorder.mapper;/*
 * @Auther:Sadie
 * @Date:2025/5/12
 * @Description:
 * @VERSON:1.8
 */

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.entity.taskorder.ReplacementPart;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ReplacementPartMapper extends BaseMapper<ReplacementPart> {
    @Select("select * from replacement_parts where task_order_id=#{taskOrderId}")
    List<ReplacementPart> selectListByTaskOrderId(Long taskOrderId);

    @Delete("delete from replacement_parts where task_order_id=#{taskOrderId}")
    void deleteByTaskOrderId(Long taskOrderid);
}
